
export const api = {
    RichtechDevices: 'RichtechDevices',
    RichtechUserCenter: 'RichtechUserCenter',
    RichtechCertificationCenter: 'RichtechCertificationCenter', //认证
    RichtechModel: "RichtechModel", //模型引擎
    RichtechDocument: "RichtechDocument", //文件管理
    RichtechAuthorizationCenter: "RichtechAuthorizationCenter",
    RichtechLessee: "RichtechLessee", //租户模块
    RichtechPlatform: "RichtechPlatform", //运营方
    RichtechFlow: "RichtechFlow" //流程
}


import {api} from '@/api/manage'
export const getElementList_api  = (params)=>getAction("/data/factory/factory/productLine/device",params);
export const addElement_api  = (params)=>getAction("/data/factory/device/data",params);
export function login(parameter) {
  return axios({
    url:`${api.RichtechCertificationCenter + '/Auth/GetAccessToken'}`,
    method: 'post',
    data: parameter
  })
}